package demo1;

public class Test {
    public static void main(String[] args) {
        AchieveTree tree=new AchieveTree();
        AchieveTree.TreeNode root = new AchieveTree.TreeNode('A');
        root.left = new AchieveTree.TreeNode('B');
        root.right = new AchieveTree.TreeNode('C');
        root.left.left = new AchieveTree.TreeNode('D');
        root.left.right = new AchieveTree.TreeNode('E');
        root.right.right = new AchieveTree.TreeNode('F');
        root.right.left = new AchieveTree.TreeNode('H');

        System.out.println(tree.size(root));
    }
}
